<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			
			.btn{
				width: 90px;
				height: 30px;
				border: none;
				outline: none;
				background: #ccc;
			}
			.btn:active{
				transform: translateY(2px);
			}
			.btn:hover{
				cursor: pointer;
				background: #FFFFFF;
				border: 1px solid #CCCCCC;
			}
			.div1{
				width: 400px;
				height: 400px;
				box-shadow: 2px 2px 2px #ccc;
			   border: 1px solid #CCCCCC;
			   margin-top: 10px;
			}
		</style>
	</head>
	<body>
		<button class="btn" id="clickBtn">显示隐藏</button>
		<button class="btn" id="fadeBtn">淡入淡出</button>
		
		<div class="div1">

		</div>
		<script src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
			$("#clickBtn").bind('click',function(){
				$('.div1').slideToggle();
			})
			$('#fadeBtn').bind('click',function(){
				$(".div1").fadeToggle(800);
			})
		</script>
	</body>
</html>
